import http from '@/service/http'
import type { ILoginParams, IRegisterParams } from '../login/types'

const LoginApi = {
  login(params: ILoginParams) {
    return http.post('/api/web/admin/login', params)
  },
  register(params: IRegisterParams) {
    return http.post('/api/web/admin/register', params)
  }
}

export default LoginApi
